package queen.util;

import queen.Solution;

/**
 *
 * @author <a href="mailto:DL88250@gmail.com">Liang Ding</a>
 * @version 1.0.0.4, Mar 17, 2010
 */
final public class Asserts {

    private Asserts() {
    }

    public static final void isValid(int[] solution) {
        int countChecks = Solution.countChecks(solution);
        if (countChecks != 0) {
            throw new RuntimeException("It is not a solution!");
        }
    }
}
